<?php echo $this->fetch('header.html'); ?>
<ul class="nav nav-tabs">
<li><a href="<?php echo $this->_var['appadmin']; ?>?m=model"><?php echo $this->_var['lang']['model_admin']; ?></a></li>
<li class="active"><a href="<?php echo $this->_var['appadmin']; ?>?m=model&a=add"><?php echo $this->_var['lang']['model_add']; ?></a></li>
</ul>

<div class="rbox">
<form method="post" action="<?php echo $this->_var['appadmin']; ?>?m=model&a=save&id=<?php echo $this->_var['data']['id']; ?>">
<table width="100%" border="0" class="table table-bordered">
  <tr>
    <td width="19%" align="right">名称：</td>
    <td width="81%"><label for="title"></label>
      <input name="title" type="text" id="title" value="<?php echo $this->_var['data']['title']; ?>"></td>
  </tr>
  <tr>
    <td align="right">表名：</td>
    <td><label for="tablename"></label>
      <?php if ($this->_var['data']['tablename']): ?><?php echo $this->_var['data']['tablename']; ?><?php else: ?><input name="tablename" type="text" id="tablename" value="<?php echo $this->_var['data']['tablename']; ?>"><?php endif; ?></td>
  </tr>
 
   
  <tr>
    <td align="right">&nbsp;</td>
    <td><input type="submit" name="button" id="button" class="btn" value="<?php echo $this->_var['lang']['submit']; ?>"></td>
  </tr>
</table>


</form>
</div>
<?php echo $this->fetch('footer.html'); ?>